package com.cg.conf.exception.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author shinetan
 * @since 0.1.0
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface GlobalException {

    /**
     * Priority: The smaller the value, the higher the priority
     *
     * @return
     */
    int priority() default 1000;

    Class<? extends Throwable> throwable() default Throwable.class;

}
